常用混淆设置

常用混淆设置

Butterknife:

1
2
3
-keep class butterknife.*
-keepclasseswithmembernames class * { @butterknife.* <methods>; }
-keepclasseswithmembernames class * { @butterknife.* <fields>; }

官方原文地址

AndroidPicker:

1
2
3
4
-keepattributes InnerClasses,Signature
-keepattributes *Annotation*
-keep class cn.qqtheme.framework.entity.** { *;}

不混淆指定包下的类

1
2
-keep class 你的实体类所在的包.** { *; }
例:-keep class com.demo.login.bean.** { *; }